import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<VillageHousePickerState> buildReducer() {
  return asReducer(
    <Object, Reducer<VillageHousePickerState>>{
      VillageHousePickerAction.action: _onAction,
      VillageHousePickerAction.refresh: _onAction,
    },
  );
}

VillageHousePickerState _onAction(
    VillageHousePickerState state, Action action) {
  final VillageHousePickerState newState = state.clone();
  return newState;
}
